package cuishifeng.blog.learn.camel;

/**
 * @author cuishifeng <cuishifeng0207@163.com>
 * Created on 2021-04-11
 */
public class MyService {

    public User doSomeThing(User user) {
        System.out.println("doSomeThing message:" + user.getName());
        user.setAge(user.getAge() + 10);
        return user;
    }

    public User doSomeThing2(Object message) {
        System.out.println("doSomeThing2 message:" + message);
        return (User) message;
    }
}
